import {routerMenu} from './_common/routermenu'
import {head} from './_common/routerpageheader'

const path = location.hash.slice(1)

export default Pager.pages([

  {url: '/normal/font', content: import('./_normal/font')},
  {url: '/normal/color', content: import('./_normal/color')},
  {url: '/normal/icon', content: import('./_normal/icon')},
  {url: '/normal/button', content: import('./_normal/button')},
  {url: '/normal/tag', content: import('./_normal/tag')},
  {url: '/normal/lineheight', content: import('./_normal/lineheight')},
  {url: '/normal/backtop', content: import('./_normal/backtop')},
  {url: '/normal/grid', content: import('./_normal/grid')},
  
  {url: '/navigation/dropdown', content: import('./_navigation/dropdown')},
  {url: '/navigation/tabs', content: import('./_navigation/tabs')},
  
  {url: '/feedback/tooltip', content: import('./_feedback/tooltip')},
  {url: '/feedback/alert', content: import('./_feedback/alert')},
  {url: '/feedback/tip', content: import('./_feedback/tip')},
  {url: '/feedback/modal', content: import('./_feedback/modal')},
  {url: '/feedback/notice', content: import('./_feedback/notice')},
  {url: '/feedback/drawer', content: import('./_feedback/drawer')},
  {url: '/feedback/load', content: import('./_feedback/load')},
  {url: '/feedback/collapse', content: import('./_feedback/collapse')},
  {url: '/feedback/steps', content: import('./_feedback/steps')},

  {url: '/show/tree', content: import('./_show/tree')},
  {url: '/show/table', content: import('./_show/table')},
  {url: '/show/btTable', content: import('./_show/btTable')},
  {url: '/show/swiper', content: import('./_show/swiper')},
  {url: '/show/echart', content: import('./_show/echart')},
  {url: '/show/paging', content: import('./_show/paging')},
  
  {url: '/items/order', content: import('./_items/order/list')},
  {url: '/items/order/detail', content: import('./_items/order/detail/index')},
  {url: '/items/login', content: import('./_items/login')},
  {url: '/items/default', content: import('./_items/default')},
], {
  header: function () {
    return <routerMenu.UI />
  },
  menus: function() {
    return head
  },
  select: path || '/normal/font'
})
